<?php 
class ModelPhoneCallType extends Model {
	public function getCallType($call_type_id) {
		$query = $this->db->query("SELECT * FROM phone_call_types WHERE call_type_id = '" . (int)$call_type_id . "'");

		return $query->row;
	}

	public function getCallTypes($data = array()) {
		$sql = "SELECT call_type_id, name FROM phone_call_types pct order by sort_order";

		$query = $this->db->query($sql);

		return $query->rows;
	}
}
?>